package Four;

/**
 * @author 长风无言
 */
public class Student {

    private String name;
    private int num;
    private int age;

    public Student() {
    }
/**
 * description:
 *
 * @param name 姓名
 * @param num  学号
 * @param age  年龄
 * @return void
 */
    public Student(String name, int num, int age) {
        setName(name);
        setNum(num);
        setAge(age);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
/**
 * description: toString重写
 *
 * @return java.lang.String
 */
    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", num=" + num +
                ", age=" + age +
                '}';
    }
}